package model

import (
	"time"
)

const DefineUnitLevelName = "define_unit_level"

type DefineUnitLevel struct {
	Id     int               `json:"id" orm:"auto" sql:"INT"`
	Name   map[string]string `json:"name" sql:"JSON"`
	Desc   map[string]string `json:"desc" sql:"JSON"`
	UnitId int               `json:"unit_id" sql:"INT"`
	Level  int               `json:"level" sql:"INT"`

	Show        []interface{} `json:"show" sql:"JSON"`
	RecoverTime int           `json:"recover_time" sql:"INT"`
	PowerPoint  int           `json:"power_point" sql:"INT"`

	// 升级条件：经验值
	Require    CompareDataRelationSlice `json:"require" sql:"JSON"`
	Consume    DataRelationSlice        `json:"consume" sql:"JSON"`
	Effect     DataRelationSlice        `json:"effect" sql:"JSON"`
	EffectText ShowTextSlice            `json:"effect_text" sql:"JSON"`

	SyncDefault []int `json:"sync_default" sql:"JSON"`

	UpdateTime *time.Time `json:"update_time" orm:"updateTime" sql:"DATETIME"`
}
